function g1 = static_g1(T, y, x, params, T_flag)
% function g1 = static_g1(T, y, x, params, T_flag)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%                                              to evaluate the model
%   T_flag    boolean                 boolean  flag saying whether or not to calculate temporary terms
%
% Output:
%   g1
%

if T_flag
    T = P00ra.static_g1_tt(T, y, x, params);
end
g1 = zeros(10, 10);
g1(1,1)=T(4)*(params(4)-1)*params(8)*1/y(5)-T(5)*(params(4)-1)*1/y(5);
g1(1,2)=T(1)*T(12)-(params(4)-1)*y(1)/y(5)*T(13);
g1(1,5)=T(4)*(params(4)-1)*params(8)*(-y(1))/(y(5)*y(5))-(params(2)*getPowerDeriv(y(5),params(7),1)+T(5)*(params(4)-1)*(-y(1))/(y(5)*y(5)));
g1(1,10)=T(1)*T(16)-(params(4)-1)*y(1)/y(5)*T(5)*(-log(y(2)));
g1(2,1)=params(4)*params(8)*T(4)*params(1)*1/y(3)-T(5)*params(1)*params(4)*1/y(3);
g1(2,2)=T(13)+T(6)*params(4)*params(8)*params(1)*T(12)-(1-params(3)+params(4)*T(6))*params(1)*T(13);
g1(2,3)=params(4)*params(8)*T(4)*params(1)*(-y(1))/(y(3)*y(3))-T(5)*params(1)*params(4)*(-y(1))/(y(3)*y(3));
g1(2,10)=T(5)*(-log(y(2)))+T(6)*params(4)*params(8)*params(1)*T(16)-(1-params(3)+params(4)*T(6))*params(1)*T(5)*(-log(y(2)));
g1(3,1)=params(8);
g1(3,10)=1;
g1(4,1)=(-1);
g1(4,2)=1;
g1(4,4)=1;
g1(5,1)=1;
g1(5,3)=(-(T(8)*exp(y(7))*T(14)));
g1(5,5)=(-(T(7)*exp(y(7))*T(15)));
g1(5,7)=(-(T(7)*exp(y(7))*T(8)));
g1(6,3)=(-(1-(1-params(3))));
g1(6,4)=1;
g1(7,1)=(-(1/y(5)));
g1(7,5)=(-((-y(1))/(y(5)*y(5))));
g1(7,6)=1;
g1(8,7)=1-params(5);
g1(9,3)=(-(T(8)*params(4)*getPowerDeriv(y(3),params(4)-1,1)));
g1(9,5)=(-(T(9)*T(15)));
g1(9,8)=1;
g1(10,3)=(-(T(10)*(1-params(4))*T(14)));
g1(10,5)=(-(T(7)*(1-params(4))*getPowerDeriv(y(5),(-params(4)),1)));
g1(10,9)=1;

end
